package com.bytedance.retrofit2.client;

public final class Header {
    public final String name;
    public final String value;

    public Header(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public final boolean equals(Object arg5) {
        boolean v0 = true;
        if (this != arg5) {
            if (arg5 != null && this.getClass() == arg5.getClass()) {
                if (this.name != null) {
                    if (this.name.equals(((Header) arg5).name)) {
                        if (this.value != null) {
                            if (this.value.equals(((Header) arg5).value)) {
                                return v0;
                            }
                        } else if (((Header) arg5).value != null) {
                        } else {
                            return v0;
                        }
                        return false;
                    }
                } else if (((Header) arg5).name == null) {
                    label_20:
                    if (this.value != null) {
                        if (this.value.equals(((Header) arg5).value)) {
                            return v0;
                        }
                    } else if (((Header) arg5).value != null) {
                    } else {
                        return v0;
                    }

                    return false;
                }

                return false;
            }
            v0 = false;
        }
        return v0;
    }

    public final int hashCode() {
        int v1 = 0;
        int v0 = this.name != null ? this.name.hashCode() : 0;
        v0 *= 31;
        if (this.value != null) {
            v1 = this.value.hashCode();
        }

        return v0 + v1;
    }

    public final String toString() {
        StringBuilder v1 = new StringBuilder();
        String v0 = this.name != null ? this.name : "";
        v1 = v1.append(v0).append(": ");
        v0 = this.value != null ? this.value : "";
        return v1.append(v0).toString();
    }
}

